package com.example.entity.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import lombok.Data;

import java.util.List;

@Data
public class Conversation{

    private String startEpoch;

    private String subject;

    private String mode ="chat";

    @JacksonXmlElementWrapper(localName = "Participants")
    private List<User> user;

    @JacksonXmlElementWrapper(localName = "ConversationBody")
    private List<Message> message;

}